<?php
/**
 * @Author: Marte
 * @Date:   2017-08-18 12:32:10
 * @Last Modified by:   Marte
 * @Last Modified time: 2017-08-18 19:01:28
 */
$_bookid=$_assoc1['bookid'];
$sql2="select secnum,secname from book_section where bookid='$_bookid'";
//查找到对应bookid和章节的记录
$_result2=$_mysql->query($sql2);


?>
 <div class="main2">
 <span class="main2_title">目录</span>
 <span class="zhengwen">正文 <em><img src="images/jiahao.png" alt=""></em></span>
        <ul>
        <?php
            while($_assoc2=$_result2->fetch_assoc())
            {
        ?>
            <li><a href="read_page.php?change=2&bookid=<?php echo $bookid;?>&secnum=<?php echo $_assoc2['secnum'];?>" title="">第<?php chinanum($_assoc2['secnum']);?>章 <?php echo $_assoc2['secname']?></a></li>
           <?php
            }
           ?>
        </ul>
        <div class="clear">

        </div>
        <span class="main2_title ss"><a href="read_page.php?change=2&bookid=<?php echo $_bookid;?>" title="">返回</a></span>
</div>